package com.szjlc.responsebodyadvice;

import cn.hutool.core.date.StopWatch;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 统一封装返回结果启动类
 * @author steve
 * @since 2022-11-19 14:34
 */
@EnableKnife4j
@Slf4j
@SpringBootApplication
public class ResponseApplication {
    public static void main(String[] args) {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start("Application start");
        SpringApplication.run(ResponseApplication.class, args);
        stopWatch.stop();
        log.info(stopWatch.prettyPrint());
    }
}
